<?php


namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Notifications\Notifiable;
use Watson\Validating\ValidatingTrait;

class ClassGroup extends Model
{
    use Notifiable;
    use ValidatingTrait;
    protected $table = "class_groups";
    public static $selection = ['1'=>'公共基础课','2'=>'日语','3'=>'创新创业教育'];
    protected $fillable = [
        "class_group_name", "class_group_number","peoples","field",'selected',"selection_id"
    ];
    protected $rules = [
//        'open_id' => 'required|unique:wechat_users'
    ];
    protected $validationMessages = [
//        'open_id.required' => '用户名必填',
//        'open_id.unique' => '该id已经被注册过了',
    ];
}
